{dede:include file='header.htm'/}
    <div class="content clearfix">
        <div class="breadcrumbs"><a href="http://www.23ps.com/">首页</a><span>></span>用户空间<span>></span><h1>给 {dede:var.userid /} 留言</h1></div>
        <div class="main-col mod-author-page">
        
            <div class="author-box">
                <div class="author-info clearfix" id="userInfo" style="padding:15px;">
                    <span class="user"><a href="index.php?uid={dede:var.userid/}" /}&action=infos" class="thumb">
                    {dede:if $_vars['face']=='' } <img src="space/person/common/images/noavatar.gif" alt="<?php echo $row['uname']; ?>还没设置头像" /> {else} <img src="{dede:var.face/}" alt="{dede:var.uname/}的头像" /> {/dede:if}
                    </a></span>
                    <strong class="title">{dede:var.userid /}</strong>
                    <p class="info">
                        昵 称：{dede:var.userid /}<br/>
                        性 别：{dede:var.sex /}<br/>
                        会员等级：{dede:var.membername/}<br/>
                        会员积分：{dede:var.scores/} 分<br/>
                        空间访问：{dede:var.homecount/} 次<br/>
                        发布教程数：<?php echo $week_user['article']['t']; ?><br/>
                    </p>
                </div>
                <div class="mod-post-list-1 mod-post-list-2">

		<div class="comments">
        <?php 
        
            if(isset($cfg_ml->M_LoginID) && $cfg_ml->M_LoginID!=''){
            ?>
                <h2>您好 <?php if(isset($cfg_ml->M_LoginID) && $cfg_ml->M_LoginID!='') echo $cfg_ml->M_LoginID; ?> ，给 {dede:var.userid /} 留个言吧！</h2>
                
                <div class="commentsform" style="padding-top:15px; clear:both;">
                    <a name="postform"></a>
                     <form action="index.php" name="form1" method="post">
                        <input type="hidden" id="guser" value="{dede:var.uname /}" />
                        <input type="hidden" name="action" value="guestbooksave" />
                        <input type="hidden" name="uidnum" value="{dede:var.mid/}" />
                        <input type="hidden" name="uid" value="{dede:var.userid/}" />
                        <input type="hidden" name="uname" type="text" id="uname" value="<?php if(isset($cfg_ml->M_LoginID) && $cfg_ml->M_LoginID!='') echo $cfg_ml->M_LoginID; ?>"  />
                        
                            <p class="n"><label for="msg">内容：</label><textarea class="ipt-txt" rows="5" name="msg" id="msg" cols="60"></textarea></p>
                            <div id="_ajax_feedback" class="dcmp-userinfo t">
                            <input type="text" class="ipt-txt" size="16" name="username" style="position:absolute; top:-99999pt;">
                            <label for="validate">验证码:</label><input name="vdcode" type="text" id="vdcode" size="10" style="height:16px;width:60px;" class="ip" /><img src='../include/vdimgck.php' width='60px' height='20px'  />
                            <input type="checkbox" id="dcmp-submit-guest" name="notuser" style="position:absolute; top:-99999pt;"><label for="dcmp-submit-guest" style="position:absolute; top:-99999pt;">匿名? </label>
                            </div>
                             <p class="submit"><strong class="button"><button name="sbbt" type="submit">发表留言</button></strong></p>
                    
                    
                    </form>
                </div>        
            <?php
            }else{
            ?>
                <h2 style="margin-bottom:15px;">您必须登陆后才能留言，<a href="/member/index_do.php?fmdo=user&amp;dopost=regnew">免费注册</a> ┊ <a href="/member/login.php">登录网站</a></h2>
            <?php
            };
        
        
        ?>
        
        
        
		  <!--div class="post-comment">
            <h5>发表留言</h5>
            <div>
            <form action="index.php" name="form1" method="post">
            <input type="hidden" id="guser" value="{dede:var.uname /}" />{dede:var.uname /}：
            <input type="hidden" name="action" value="guestbooksave" />
            <input type="hidden" name="uidnum" value="{dede:var.mid/}" />
            <input type="hidden" name="uid" value="{dede:var.userid/}" />
            <input type="hidden" name="uname" type="text" id="uname" value="<?php if(isset($cfg_ml->M_LoginID) && $cfg_ml->M_LoginID!='') echo $cfg_ml->M_LoginID; ?>"  />
            </div>
            <div>
            <textarea class="ip" name="msg" id="msg" style="width:95%;height:8em"></textarea>
            <span style="margin-top:-1em;padding:3px; text-align:right; width:200px; position:absolute">
            </div>
            </span>
            </div>
            <table>
            <tr>
            <td>验证码：</td>
            <td><input name="vdcode" type="text" id="vdcode" size="10" style="height:16px;width:60px;" class="ip" /></td>
            <td><img src='../include/vdimgck.php' width='60px' height='20px'  /></td>
            <td>&nbsp;<input name="sbbt" type="submit" value="发送留言" style="width:60px;height:22px"  /></td>
            </tr>
            </table>
            </div>
		  </form-->
        
        
        
            <h2>最新留言</h2>
            <div id="newgbook"></div>
            
            <div class="commentlist">
            <ul>
            {dede:datalist}
		    <li id="dl_1">
            <a name="1"></a>


            <a href="/member/index.php?uid={dede:field.uname/}" class="plpic">
            <?php if($fields['face']==''){ 
                $face=($fields['sex']=='女')? 'templets/images/dfgirl.png' : 'templets/images/dfboy.png';
                echo '<img src="'.$face.'" width="40" height="40"/>';
             }else{ 
                 echo '<img src="'.$fields['face'].'" width="40" height="40" alt="'.$fields['uname'].'的头像" />';
             } ?> 
            </a>
            
            <span style="float:right; width:540px;"><a href="/member/index.php?uid={dede:field.uname/}"><strong>{dede:field.uname/}</strong></a><i style=" padding-left:10px; font-size:11px; color:#999;">{dede:field.dtime function="MyDate('Y-m-d H:i',@me)" /}</i></span>
            <p>{dede:field.msg function="Text2Html(@me)" /}</p>

          </li>
		  {/dede:datalist}
          </ul>
          </div>
          
          
		  <div class="big"><div class="pages" style="text-align:center; padding:15px 0 5px 0;">{dede:pagelist/}</div></div>
          
          
          
          
          
          
          
          
          
          
          

               </div>
               </div>
           </div>
        </div>
        <div class="right-sidebar">
            {dede:include file='sidebar.htm'/}
        </div>
    </div>
    <!-- content end -->



{dede:include file='footer.htm'/}
</body>
</html>

